package lab02.Test09;


public class Student {
    private long stuNum;
    private long id;
    private String name;
    private char sexy;
    private int age;

    public long getStuNum (){
        return  stuNum;
    }
    public long getId(){
        return  id;
    }
    public String getName(){
        return name;
    }
    public int getAge(){
        return age;
    }
    public char getSexy(){
        return  sexy;
    }
    public String toString( long stuNum,long id,String name,char sexy,int age ) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.sexy = sexy;
        this.stuNum = stuNum;
        String msg = "姓名："+name+"学号："+id+"班号："+stuNum+"性别："+sexy+"年纪："+age;
        return  msg;
    }

}
